package com.xdj.chashuiwu.photography.service.impl;

import com.xdj.chashuiwu.photography.dao.PhotographyDao;
import com.xdj.chashuiwu.photography.entity.PhotographyEntity;
import com.xdj.chashuiwu.photography.service.PhotographyService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xdj.common.utils.PageUtils;
import com.xdj.common.utils.Query;


@Service("photographyService")
public class PhotographyServiceImpl extends ServiceImpl<PhotographyDao, PhotographyEntity> implements PhotographyService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PhotographyEntity> page = this.page(
                new Query<PhotographyEntity>().getPage(params),
                new QueryWrapper<PhotographyEntity>()
        );

        return new PageUtils(page);
    }

}